There are several purposes of this demo
- To provide an example of how to write a plugin toolbutton into the EcoSpace designer and access model information at design time. (HtmlReportTool.cs)
- The HtmlReportTool extracts model information and dumps it in a HTML-file. It may serve as a starting point for creating your own custom reports from the model. (HtmlReportTool.cs)
- Replace the Generate Schema tool with a tool that combines Validate Model and Generate Schema. (ValidateAndgenerate.cs)
- Show how to amend the model validation engine. The example shows how to detect certain patterns in OCL strings - you can easily use the same basic pattern to scan for inappropriate names, too long/short identifiers or other coding rules you may chose to report on. (OclScannerValidator.cs)
- Show how OCL on forms can be validated (ValidateForms.cs)
- Control the amount of logging produced at design time. Since the model layer is a full blown ECO application, don't be surprised over the amount of OCL statements executed when code is generated!
In all cases you need to study the code in order to take advantage of
it.